import request from '@/utils/request'

// 查询预设值列表
export function listPreset(query) {
  return request({
    url: '/enc/monitor/list',
    method: 'get',
    params: query
  })
}

// 查询预设值详细
export function getPreset(id) {
  return request({
    url: '/enc/monitor/details/' + id,
    method: 'get'
  })
}

// 新增预设值
export function addPreset(data) {
  return request({
    url: '/enc/monitor/add',
    method: 'post',
    data: data
  })
}

// 修改预设值
export function updatePreset(data) {
  return request({
    url: '/enc/monitor/update',
    method: 'put',
    data: data
  })
}

// 删除预设值
export function delPreset(id) {
  return request({
    url: '/enc/monitor/remove/' + id,
    method: 'delete'
  })
}
